package com.gxa.mapper;

import com.gxa.domain.dto.SysRoleSaveDTO;
import com.gxa.domain.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysRoleMapper {
    List<SysRole> findSysRoleList(@Param("offset") Integer offset,@Param("rows") Integer rows);

    int countSysRole();

    int delRoleByRoleId(Integer roleId);

    int addSysRole(SysRoleSaveDTO sysRoleSaveDTO);

    int updateSysRole(SysRole sysRole);

    List<SysRole> findSysRoleListByCondition(@Param("offset") Integer offset,@Param("rows") Integer rows,@Param("roleName") String roleName);

    Integer countSysRoleByCondition(String roleName);
}
